" winmanager配置
let g:NERDTree_title='NERDTree'
function! NERDTree_Start()
    exec 'NERDTree'
endfunction

function! NERDTree_IsValid()
    return 1
endfunction

" 绑定F2到winmanager
" nmap <silent> <F12> :if IsWinManagerVisible() <BAR> WMToggle<CR> <BAR> else <BAR> WMToggle<CR>:q<CR> endif <CR>

" let g:winManagerWindowLayout='NERDTree|Tag List'
let g:winManagerWindowLayout='Tagbar'
nmap <silent> <F12> :WMToggle<cr>
let g:winManagerWidth = 30
map wm :WMToggle<cr>

